
const dbConfig = require("./index")
const dayjs = require('dayjs')
//获取所有用户列表
const getAllUsersList = (req, res) => {
  let sql = `select * from tool.users`
  let sqlArr = []
  dbConfig.sqlConnect(sql, sqlArr, (data, err) => {
    if (err) return res.sends('参数错误')
    //返回数据
    res.sends(data)
  }, res)
}

module.exports = { getAllUsersList }
